#db_name=["balck","white","gray"]
dbname="black"
#用dbname替换%s
db_name = 'db_%s' % dbname
print(db_name)